memory hotadd 1/7: Setup m2p table for hot-added memory
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:53:57 +0000 (08:53 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 11 Dec 2009 08:53:57 +0000 (08:53 +0000)
commitf17f5479d1f780e714036fb0e07b88ab51388445
treed8722711d9ad5d3a97cbf6fb6cb48555a17e0284
parentfc63162a0927e3054c497a70175765600a08a697
memory hotadd 1/7: Setup m2p table for hot-added memory

When new memory added to the system, we need to update the m2p table
to cover the new memory range.

When memory add, it is difficult to allocate continous pages, so we
allocate the memory from the new added memory range. This also improve
the locality in numa situation.

We don't support 1G mapping for hot memory, because AFAIK currently
hot-plug memory will not be that large.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/x86_64/mm.c